home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xm / DrawnBP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  2.0 KB  |  91 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  3.  * ALL RIGHTS RESERVED
  4. */ 
  5. /*   $RCSfile: DrawnBP.h,v $ $Revision: 1.15 $ $Date: 92/05/14 12:50:58 $ */
  6. /*
  7. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  8. #ifndef _XmDButtonP_h
  9. #define _XmDButtonP_h
  10.  
  11. #include <Xm/DrawnB.h>
  12. #include <Xm/LabelP.h>
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  18. /* DrawnButton class structure */
  19.  
  20. typedef struct _XmDrawnButtonClassPart
  21. {
  22.    int foo;
  23. } XmDrawnButtonClassPart;
  24.  
  25.  
  26. /* Full class record declaration for DrawnButton class */
  27.  
  28. typedef struct _XmDrawnButtonClassRec {
  29.     CoreClassPart      core_class;
  30.     XmPrimitiveClassPart  primitive_class;
  31.     XmLabelClassPart      label_class;
  32.     XmDrawnButtonClassPart drawnbutton_class;
  33. } XmDrawnButtonClassRec;
  34.  
  35.  
  36. externalref  XmDrawnButtonClassRec xmDrawnButtonClassRec;
  37.  
  38.  
  39. /* DrawnButton instance record */
  40.  
  41. typedef struct _XmDrawnButtonPart
  42. {
  43.    Boolean         pushbutton_enabled;
  44.    unsigned char    shadow_type;
  45.    XtCallbackList   activate_callback;
  46.    XtCallbackList   arm_callback;
  47.    XtCallbackList   disarm_callback;
  48.    XtCallbackList   expose_callback;
  49.    XtCallbackList   resize_callback;
  50.  
  51.    Boolean         armed;
  52.    Dimension        old_width;
  53.    Dimension        old_height;
  54.    Dimension        old_shadow_thickness;
  55.    Dimension        old_highlight_thickness;
  56.    XtIntervalId     timer;
  57.    unsigned char    multiClick;         /* KEEP/DISCARD resource */
  58.    int              click_count;
  59.    Time            armTimeStamp;
  60.  
  61. } XmDrawnButtonPart;
  62.  
  63.  
  64. /* Full instance record declaration */
  65.  
  66. typedef struct _XmDrawnButtonRec {
  67.     CorePart         core;
  68.     XmPrimitivePart  primitive;
  69.     XmLabelPart      label;
  70.     XmDrawnButtonPart drawnbutton;
  71. } XmDrawnButtonRec;
  72.  
  73.  
  74. /********    Private Function Declarations    ********/
  75. #ifdef _NO_PROTO
  76.  
  77.  
  78. #else
  79.  
  80.  
  81. #endif /* _NO_PROTO */
  82. /********    End Private Function Declarations    ********/
  83.  
  84.  
  85. #ifdef __cplusplus
  86. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  87. #endif
  88.  
  89. #endif /* _XmDButtonP_h */
  90. /* DON'T ADD ANYTHING AFTER THIS #endif */
  91.